<template>
    <div>
        <h3>首页</h3>
        <p>
            <span>重定向(redirect):</span><router-link to="/goParams">goParams</router-link>
        </p>
        <p>userId:  {{ $route.params.userId }} </p>
        <p>userName:{{ $route.params.userName }}</p>
    </div>
</template>
<script>
export default {
    name:'Shouye',
    data(){
        return {
            
        }
    }
}
</script>
<style>
.secondClass{
    border:1px solid yellow;
}
</style>


